package com.ybkj.o2o.sales.mapper;



import com.ybkj.o2o.sales.entity.Application;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ApplicationMapper {

  Long exists(@Param("name") String name);

  List<Application> findAll(@Param("offset") int offset, @Param("rows") int rows);

  long count();

  void insert(Application application);

  Application fetch(@Param("id") Long id);

  void update(Application application);

  void delete(@Param("id") Long id);

  Application fetchByAppId(@Param("appId") String appId);



}
